    //js sdk
/*
    function getLocation1() {
    wx.ready(function () {
        wx.getLocation({
            type: 'wgs84',
            success: function (res) {
                // 地址解析:http://lbs.qq.com/javascript_v2/guide-service.html#link-four
                let geocoder = new qq.maps.Geocoder({
                    complete: function (result) {
//                            resolve(result.detail.address)
//                            alert(JSON.stringify(result))
                        alert(JSON.stringify(result.detail.addressComponents.city))
                    }
                })
                var coord = new qq.maps.LatLng(res.latitude, res.longitude)
                geocoder.getAddress(coord)
            }
        })
    })
}
    getLocation1();
*/
/*
    function getLocation2() {
        wx.ready(function () {
            wx.getLocation({
                type: 'wgs84',
                success: function (res) {
                    // 地址解析:http://lbs.qq.com/javascript_v2/guide-service.html#link-four
                    let geocoder = new qq.maps.Geocoder({
                        complete: function (result) {
                            // return result.detail.addressComponents.city;
                            alert(JSON.stringify(result.detail.addressComponents.city))
                            console.log(result);
                            // callback(result.detail.addressComponents.city)
                            // isGetLocation = true;
                        }
                    })
                    var coord = new qq.maps.LatLng(res.latitude, res.longitude)
                    geocoder.getAddress(coord)
                },
                faild:function (res) {
                    alert("定位失败，请扫面二维码获取登陆小啡");
                }
            })
        })
    }
    getLocation2();*/
